package ex301.pet;

import java.time.LocalDate;

public class Pet {
    private String name;
    private LocalDate birthday;

    public Pet(String name, LocalDate birthday) {
        this.name = name;
        this.birthday = birthday;
    }

    public String shout() {
        return String.format("名字：%s，生日：%2$tY年%2$tm月%2$td日", name, birthday);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }
}
